package com.wfk.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 平台提现规则
 * </p>
 *
 * @since 2019-01-07
 */
@TableName("t_sys_cash_rule")
public class SysCashRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

        /**
     * 每笔提现最小金额
     */
         private BigDecimal minval;

        /**
     * 每笔提现最大金额
     */
         private BigDecimal maxval;

        /**
     * 提现手续费
     */
         private BigDecimal scale;

        /**
     * 提现次数
     */
         private Integer num;

        /**
     * 0不限制  1限制每日提现次数  2限制每周提现次数 3限制每月提现次数
     */
         private Integer type;

        /**
     * 0开启提现  -1关闭提现
     */
         private Integer isopen;

        /**
     * 提现金额的整数倍
     */
         private Integer multiple;

        /**
     * 1.用户提现 2.供应商提现 3.代理商提现  4.商家提现
     */
         private Integer roletype;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getMinval() {
        return minval;
    }

    public void setMinval(BigDecimal minval) {
        this.minval = minval;
    }

    public BigDecimal getMaxval() {
        return maxval;
    }

    public void setMaxval(BigDecimal maxval) {
        this.maxval = maxval;
    }

    public BigDecimal getScale() {
        return scale;
    }

    public void setScale(BigDecimal scale) {
        this.scale = scale;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getIsopen() {
        return isopen;
    }

    public void setIsopen(Integer isopen) {
        this.isopen = isopen;
    }

    public Integer getMultiple() {
        return multiple;
    }

    public void setMultiple(Integer multiple) {
        this.multiple = multiple;
    }

    public Integer getRoletype() {
        return roletype;
    }

    public void setRoletype(Integer roletype) {
        this.roletype = roletype;
    }

    @Override
    public String toString() {
        return "SysCashRule{" +
        "id=" + id +
        ", minval=" + minval +
        ", maxval=" + maxval +
        ", scale=" + scale +
        ", num=" + num +
        ", type=" + type +
        ", isopen=" + isopen +
        ", multiple=" + multiple +
        ", roletype=" + roletype +
        "}";
    }
}
